Skip to main content
POST
Try on Clothes Premium

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
task_type
string

Task Type.

  • async: Asynchronous tasks.
Example:

"async"

person_image
file

Portrait image.

top_garment
file

Upper Body Clothing Image.

resolution
number

Output Image Resolution. If you need to call Try on Clothes Refiner in the future, select -1.

  • -1: Original image resolution.
  • 1024: 576x1024px.
  • 1280: 720x1280px.
Example:

"-1"

restore_face
boolean

Whether to Keep the Model’s Face. If you need to call Try on Clothes Refiner in the future, select true.

  • true: Keep the model’s original face.
  • false: Regenerate the model’s face.
Example:

"true"

bottom_garment
file

Lower Body Clothing Image.

  • If no lower body clothing image is provided, the lower body clothing effect will be randomly generated.
  • If lower body clothing is not needed (e.g., when the upper body garment is a dress), this value should be left empty.

Response

200 - application/json

Success

The response is of type object.